<?php
/* Server */
//define('ROOT_DIR', '/home/diycity/'); 
/* Local */
define('ROOT_DIR', '/Users/hunjunbag/www/diycity/');
define('SMARTY_DIR', ROOT_DIR . '/libs/Smarty/');
require_once(SMARTY_DIR . 'Smarty.class.php');

/* Global include file */
define('DEBUG', false);
//define('SETUP_DIYCITY_DIR', '/home/diycity/smarty/');
define('SETUP_DIYCITY_DIR', '/Users/hunjunbag/www/diycity/smarty/');

session_cache_expire(30);
ini_set('session.use_trans_sid', false);
ini_set('session.gc_maxlifetime', 60*30);
//ini_set('error_reporting', E_ALL);

session_start();
if (isset ($_SESSION['admin'])) {
  if ($_SESSION['admin'])
    define('ADMIN', true);
  else
    define('ADMIN', false);
 } else {
  define('ADMIN', false);
 }

require('smarty_modifier.php');
require('util.php');
require(ROOT_DIR . 'smarty/setup_diycity.php');
date_default_timezone_set('Asia/Seoul');

?>
